<template>
    <fieldset>
        <legend>自己递归自己</legend>
        <h1>递归的次数:{{count}}</h1>
        <wdc v-if="count<5" :count="count+1" />
    </fieldset>
</template>
<script>
    export default {
        name: 'wdc',
        props: {
            count: { //控制递归的次数
                type: Number,
                required: true,
                default() {
                    return 0
                }
            }
        }
    }
</script>